package com.study.demo.aop.demo1_2;

/**
 * @author: elvin
 * @time: 2019-10-16 21:08
 * @desc:
 **/
public interface LogOperationInvoker {
    Object invoke() throws RuntimeException;

    class ThrowableWrapper extends RuntimeException {

        private final Throwable original;

        public ThrowableWrapper(Throwable original) {
            super(original.getMessage(), original);
            this.original = original;
        }

        public Throwable getOriginal() {
            return this.original;
        }
    }
}
